package org.example.microservice.sys.api.feign;

import org.example.microservice.sys.api.vo.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "DepartmentFeign", name = "sys", url = "${service.provider.sys}")
@Component
public interface DepartmentFeign {

    @GetMapping("/feign/department/{id}")
    Department getDepartment(@PathVariable("id") String id);
}
